Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump styler from 0.10.2 to 0.11.1 #13

Merged
merged 1 commit into from
Jan 1, 2024
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 1, 2024

Bumps styler from 0.10.2 to 0.11.1.

Release notes

Sourced from styler's releases.

v0.11.1

Fixes

  • with: fix with replacement when it's the only child of a do or -> block (Closes #107, h/t @​kerryb -- turns out those edge cases did exist in the wild!)

v0.11.0

Improvements

Comments

Styler will no longer make comments jump around in any situation, and will move comments with the appropriate node in all cases but module directive rearrangement (where they'll just be left behind - sorry! we're still working on it).

  • Keep comments in logical places when rewriting if/unless/cond/with (#79, #97, #101, #103)

with Statements

This release has a slew of improvements for with statements. It's not surprising that there's lots of style rules for with given that just about any case, if, or even cond do could also be expressed as a with. They're very powerful! And with great power...

  • style trivial pattern matches ala lhs <- rhs to lhs = rhs (#86)
  • style _ <- rhs to rhs
  • style keyword , do: to do end rather than wrapping multiple statements in parens
  • rewrite as an if statement when appropriate (#100)

Other

  • Rewrite {Map|Keyword}.merge(single_key: value) to use put/3 instead (#96)

Fixes

  • with: various edge cases we can only hope no one's encountered and thus never reported

v0.10.5

After being bitten by two of them in a row, Styler's test suite now makes sure that there are no idempotency bugs as part of its tests.

In short, we now have assert style(x) == style(style(x)) as part of every test. Sorry for not thinking to include this before :)

Fixes

  • alias: fix single-module alias deletion newline bug

v0.10.3

Improvements

  • charlists: leave charlist rewriting to elixir's formatter on elixir >= 1.15 (apparently we aren't the only people who thought that was a good idea!)

Fixes

  • charlists: rewrite empty charlist to use sigil ('' => ~c"")
  • pipes: don't blow up extracting fully-qualified macros (Foo.bar do end |> foo(), #91, h/t @​NikitaNaumenko)
Changelog

Sourced from styler's changelog.

v0.11.1

Fixes

  • with: fix with replacement when it's the only child of a do or -> block (Closes #107, h/t @​kerryb -- turns out those edge cases did exist in the wild!)

v0.11.0

Improvements

Comments

Styler will no longer make comments jump around in any situation, and will move comments with the appropriate node in all cases but module directive rearrangement (where they'll just be left behind - sorry! we're still working on it).

  • Keep comments in logical places when rewriting if/unless/cond/with (#79, #97, #101, #103)

With Statements

This release has a slew of improvements for with statements. It's not surprising that there's lots of style rules for with given that just about any case, if, or even cond do could also be expressed as a with. They're very powerful! And with great power...

  • style trivial pattern matches ala lhs <- rhs to lhs = rhs (#86)
  • style _ <- rhs to rhs
  • style keyword , do: to do end rather than wrapping multiple statements in parens
  • style statements all the way to if statements when appropriate (#100)

Other

  • Rewrite {Map|Keyword}.merge(single_key: value) to use put/3 instead (#96)

Fixes

  • with: various edge cases we can only hope no one's encountered and thus never reported

v0.10.5

After being bitten by two of them in a row, Styler's test suite now makes sure that there are no idempotency bugs as part of its tests.

In short, we now have assert style(x) == style(style(x)) as part of every test. Sorry for not thinking to include this before :)

Fixes

  • alias: fix single-module alias deletion newlines bug
  • comments: ensure all generated nodes always include line meta (#101)

v0.10.4

Improvements

  • alias: delete noop single-module aliases (alias Foo, #87, h/t @​mgieger)

... (truncated)

Commits
  • e5f6c63 v0.11.1
  • f16b65c fix: with replacement edge cases (#108)
  • ef5d1c6 update changelog to specify that this is 0.11
  • c6a72c1 v0.11.0
  • 1fdbffc fix some ugly formatting
  • 533590f if/unless rewrites: handle comments when inverting do/else clauses (#103)
  • 5d09581 lets call it insert_siblings
  • 908681b add Zipper.prepend/append_siblings
  • b82007a fix exception message
  • 262117d with statements: happier comments and handle sad edge cases (#102)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [styler](https://github.com/adobe/elixir-styler) from 0.10.2 to 0.11.1.
- [Release notes](https://github.com/adobe/elixir-styler/releases)
- [Changelog](https://github.com/adobe/elixir-styler/blob/main/CHANGELOG.md)
- [Commits](adobe/elixir-styler@v0.10.2...v0.11.1)

---
updated-dependencies:
- dependency-name: styler
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 1, 2024
@dependabot dependabot bot requested a review from g-andrade January 1, 2024 16:11
@g-andrade g-andrade merged commit 47c52e2 into main Jan 1, 2024
10 checks passed
@g-andrade g-andrade deleted the dependabot/hex/styler-0.11.1 branch January 1, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant